<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="../common/taglibs.jsp"%>
<html>
	<head>
		<title>产品所属行业</title>
		<meta http-equiv="content-type" content="text/html; charset=utf-8">
		<link type="text/css" href="${ctx}/css/style.css" rel="stylesheet" />
		<link type="text/css" href="${ctx}/css/forms.css" rel="stylesheet" />
		<link rel="stylesheet" href="${ctx}/js/ztree/zTreeStyle.css" type="text/css">
		<script type="text/javascript" src="${ctx}/js/jquery.js"></script>
		<script type="text/javascript" src="${ctx}/js/ztree/jquery.ztree.min.js"></script>
		<script type="text/javascript">
			var setting = {
				data: {
					simpleData: {
						enable: true
					}
				}
			};
			var zNodes =[
	 			{id:0, pId:-1, name:"行业", open:true},
	 			<c:forEach items="${industryList}" var="industry" varStatus="s">
		 			<c:if test="${s.last}">{id:${industry.id}, pId:0, name:"${industry.name}", target: "product_catalog", url:"${ctx}/product/product!productList.action?industryId=${industry.id}"}</c:if>
		 			<c:if test="${!s.last}">{id:${industry.id}, pId:0, name:"${industry.name}", target: "product_catalog", url:"${ctx}/product/product!productList.action?industryId=${industry.id}"},</c:if>
		 		</c:forEach>
	 		];
			$(document).ready(function(){
				$.fn.zTree.init($("#div_tree"), setting, zNodes);
			});
		</script>
	</head>
	<body style="margin: 0;background-image: none;" scroll="no">
		<table border="0" cellPadding="0" cellSpacing="0" height="100%" width="100%">
			<tbody>
				<tr>
					<td align="center" id="frmTitle" noWrap="nowrap" vAlign="middle" id="frmTitle">
						<div id="div_tree" class="ztree" style="height:100%;"></div>
					</td>
					<td style="width: 100%">
						<iframe frameborder="0" name="product_catalog" src="" scrolling="auto" style="height: 100%; visibility: inherit; width: 100%; z-index: 1"></iframe>
					</td>
				</tr>
			</tbody>
		</table>
	</body>
</html>